package com.wenx.mvc.controller;

import com.wenx.mvc.annotation.WXAutoWired;
import com.wenx.mvc.annotation.WXController;
import com.wenx.mvc.annotation.WXRequestMapping;
import com.wenx.mvc.annotation.WXRequestParam;
import com.wenx.mvc.service.IHelloService;

@WXController
@WXRequestMapping("/hello")
public class HelloController {

    @WXAutoWired
    IHelloService helloService;

    @WXRequestMapping("/query")
    public void hello( @WXRequestParam("str") String str) {
        String hello = helloService.hello(str);
        System.out.println("hello = " + hello);
    }

}
